<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="/frontend/common/header :: header">
</head>

<body>
<div class="mianCont">
    <div th:replace="/frontend/common/top :: top"></div>
    <div class="pnt">
        <div class="pntLeft">
            <h2 class="Title">所有商品分类
                <ul class="InPorNav">
                    <li th:each="topCategory:${categoryList}">
                        <a href="goods_list.html" th:text="${topCategory.name}"></a>
                        <div class="chilInPorNav">
                            <a th:href="@{/goods/list(categoryId=${subCategory.id})}" th:each="subCategory:${topCategory.sub}" th:text="${subCategory.name}"></a>
                        </div><!--chilLeftNav/-->
                    </li>

                </ul><!--InPorNav/-->
            </h2>
        </div><!--pntLeft/-->
        <div class="pntRight">
            <ul class="nav">
                <li><a href="index.html">商城首页</a></li>
                <li class="navCur"><a href="goods_list.html">促销中心</a></li>
                <li><a href="login.html">会员中心</a></li>
                <li><a href="help.html">帮助中心</a></li>
                <div class="clears"></div>
                <div class="phone">TEL：021-12345678</div>
            </ul><!--nav/-->
        </div><!--pntRight/-->
        <div class="clears"></div>
    </div><!--pnt/-->
    <div class="positions">
        当前位置：<a href="index.html">首页</a> &gt; <a href="#" class="posCur">促销商品</a>
    </div><!--positions/-->
    <div class="cont">
        <div class="jilu">
            总计 <span th:text="${goodsVOPageBean.pages}"></span> 页
        </div><!--jilu/-->
        <div class="contLeft">
            <ul class="leftPorNav">
                <li th:each="topCategory:${categoryList}">
                    <a href="product.html" th:text="${topCategory.name}"></a>
                    <div class="chilInPorNav">
                        <a th:href="@{/goods/list(categoryId=${subCategory.id})}" th:each="subCategory:${topCategory.sub}" th:text="${subCategory.name}"></a>
                    </div><!--chilLeftNav/-->
                </li>
            </ul><!--InPorNav/-->
        </div><!--contLeft/-->
        <div class="contRight">
            <div class="frProList">
                <dl th:each="goodsVO:${goodsVOPageBean.result}" style="height: 200px;">
                    <dt>
                        <a th:href="@{/goods/openDetails(id=${goodsVO.id})}"><img th:src="${goodsVO.pic}" width="132" height="129"/></a>
                    </dt>
                    <dd>
                        <span th:text="${goodsVO.name} +'  ' +${goodsVO.salePoint}"></span>
                    </dd>
                    <dd class="cheng">
                        <tt th:text="'￥'+ ${goodsVO.price1}+'/'+${goodsVO.unit}"> </tt>
                        <span th:text="'￥'+ ${goodsVO.price1}+'/'+${goodsVO.unit}"></span>
                    </dd>
                </dl>
                <div class="clears"></div>
            </div><!--frProList-->
            <div style="text-align: center;margin-top: 12px;font-size: 22px;">
                <span th:each="index:${#numbers.sequence(1, goodsVOPageBean.pages)}" th:if="${goodsVOPageBean.pages>=1}">
                    <a th:href="@{?(pageNum=${index},parentCategoryId=${parentCategoryId},categoryId=${categoryId})}" th:text="${index}"></a>
                </span>
            </div>
        </div><!--contRight/-->
        <div class="clears"></div>
    </div><!--cont/-->
    <div th:replace="/frontend/common/footer :: footer"></div>
</div><!--mianCont/-->
<a href="#" class="backTop">&nbsp;</a>
</body>
</html>
